/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.activity.dto.CnActivityDTO;
import com.ykht.proj.activity.entity.CnActivity;
import com.ykht.proj.activity.vo.ActivityVo;
import com.ykht.proj.common.core.util.R;

/**
 * 活动表
 *
 * @author csg
 * @date 2020-12-23 11:13:32
 */
public interface CnActivityService extends IService<CnActivity> {

	/**
	 * 添加活动数据
	 *
	 * @param cnActivityDTO
	 */
	void addCnActivity(CnActivityDTO cnActivityDTO);

	/**
	 * 修改活动表(并同时修改 商铺活动关联表)
	 *
	 * @param cnActivityDTO
	 */
	void updateCnActivityAndShopIds(CnActivityDTO cnActivityDTO);

	R<ActivityVo> getActivityById(Page page, Long id, String longitude, String latitude);

	/**
	 * 根据ID 获取活动详情
	 *
	 * @param id
	 * @return
	 */
	CnActivityDTO getByIdCnActivity(Long id);
}
